<?xml version="1.0"?>
<!--
  ~ Copyright 2004-2012 ICEsoft Technologies Canada Corp.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the
  ~ License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an "AS
  ~ IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  ~ express or implied. See the License for the specific language
  ~ governing permissions and limitations under the License.
  -->

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html" 
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:c="http://java.sun.com/jsp/jstl/core" 
    xmlns:ace="http://www.icefaces.org/icefaces/components" 
    xmlns:ice="http://www.icesoft.com/icefaces/component" 
    xmlns:ui="http://java.sun.com/jsf/facelets" 
    template="/resources/templates/content-template.xhtml">
    
    <ui:param name="title" value="#{msgs[tabLabel.title]}"/>
    <ui:param name="description" value="#{msgs[tabLabel.description]}"/>
    <ui:param name="resourceValue" value="#{tabLabel.exampleResource}"/>
    
    <ui:param name="wikiResources" value="#{compatComponentsResources.wikiResources}"/>
    <ui:param name="tldResources" value="#{compatComponentsResources.tldResources}"/>
    
    <ui:define name="example">
        <h:form>
            <ice:panelTabSet>
                <ice:panelTab label="Basic Text">
                    <p>Content for the "Basic Text" tab.</p>
                    <p>The label title was specified by the <i>label</i> attribute on the <i>ice:panelTab</i>.</p>
                </ice:panelTab>
                <ice:panelTab>
                    <p>Content for the default named tab. No <i>label</i> attribute was specified, so the component defaulted to "Tab 1".</p>
                </ice:panelTab>
                <ice:panelTab>
                    <f:facet name="label">
                        <i>Custom Italic</i>
                    </f:facet>
                    <p>Content for the "Custom Italic" tab. Instead of the <i>label</i> attribute the <i>f:facet</i> was specified.</p>
                    <p>This allows custom, rich labels to be created, or even to insert other content into the tab label (such as buttons).</p>
                </ice:panelTab>
                <ice:panelTab label="Long Named Label"
                              labelWidth="150">
                    <p>Content for the "Long Named Label" tab, which has the <i>labelWidth</i> attribute set to allow more content to fit.</p> 
                </ice:panelTab>
            </ice:panelTabSet>
        </h:form>
    </ui:define>
</ui:composition>
